package net.ufrog.common.weixin.pojos;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 脚本凭证
 * 
 * @author ultrafrog
 * @version 1.0, 2015-12-02
 * @since 1.0
 */
public class JsTicket extends Err {

	private static final long serialVersionUID = 2260079649836963538L;

	/** 凭证 */
	private String ticket;
	
	/** 有效时间 */
	@JSONField(name = "expires_in")
	private Long expiresIn;

	/**
	 * 读取凭证
	 * 
	 * @return
	 * @see #ticket
	 */
	public String getTicket() {
		return ticket;
	}

	/**
	 * 设置凭证
	 * 
	 * @param ticket
	 * @see #ticket
	 */
	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	/**
	 * 读取有效时间
	 * 
	 * @return
	 * @see #expiresIn
	 */
	public Long getExpiresIn() {
		return expiresIn;
	}

	/**
	 * 设置有效时间
	 * 
	 * @param expiresIn
	 * @see #expiresIn
	 */
	public void setExpiresIn(Long expiresIn) {
		this.expiresIn = expiresIn;
	}
}
